package entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * The type Machining.
 */
public class Machining extends Common implements Serializable {
    private static final long serialVersionUID = -76126291675944257L;
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;
    /**
     * 工序名称
     */
    private String name;
    /**
     * 加工损耗率
     */
    @TableField(value = "damageRate")
    private Double damageRate;
    /**
     * 加工标准
     */
    private String standard;

    /**
     * To string string.
     *
     * @return the string
     */
    @Override
    public String toString() {
        return "Machining{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", damageRate=" + damageRate +
                ", standard='" + standard + '\'' +
                '}';
    }

    /**
     * Gets id.
     *
     * @return the id
     * @author overlook
     * @date 2022 -04-16 20:30:51
     */
    public String getId() {
        return id;
    }

    /**
     * Sets id.
     *
     * @param id the id
     * @author overlook
     * @date 2022 -04-16 20:30:51
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * Gets name.
     *
     * @return the name
     * @author overlook
     * @date 2022 -04-16 20:30:51
     */
    public String getName() {
        return name;
    }

    /**
     * Sets name.
     *
     * @param name the name
     * @author overlook
     * @date 2022 -04-16 20:30:51
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Gets damage rate.
     *
     * @return the damage rate
     * @author overlook
     * @date 2022 -04-16 20:30:51
     */
    public Double getDamageRate() {
        return damageRate;
    }

    /**
     * Sets damage rate.
     *
     * @param damageRate the damage rate
     * @author overlook
     * @date 2022 -04-16 20:30:51
     */
    public void setDamageRate(Double damageRate) {
        this.damageRate = damageRate;
    }

    /**
     * Gets standard.
     *
     * @return the standard
     * @author overlook
     * @date 2022 -04-16 20:30:51
     */
    public String getStandard() {
        return standard;
    }

    /**
     * Sets standard.
     *
     * @param standard the standard
     * @author overlook
     * @date 2022 -04-16 20:30:52
     */
    public void setStandard(String standard) {
        this.standard = standard;
    }

    /**
     * Instantiates a new Machining.
     *
     * @author overlook
     * @date 2022 -04-16 20:30:52
     */
    public Machining() {
    }

    /**
     * Instantiates a new Machining.
     *
     * @param id         the id
     * @param name       the name
     * @param damageRate the damage rate
     * @param standard   the standard
     * @author overlook
     * @date 2022 -04-16 20:30:52
     */
    public Machining(String id, String name, Double damageRate, String standard) {
        this.id = id;
        this.name = name;
        this.damageRate = damageRate;
        this.standard = standard;
    }
}

